package com.example.springbootv1.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

public class SySRole {
    private Long id;
    private String roleCode;
    private Long createdBy;
    // 解决日期类型的相关问题
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date creationDate;
    private String roleName;
    // 解决日期类型的相关问题
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date modifyDate;
    private Long modifyBy;
    private List<SysUser> sysUserNameList;

    @Override
    public String toString() {
        return "SySRole{" +
                "id=" + id +
                ", roleCode='" + roleCode + '\'' +
                ", createdBy=" + createdBy +
                ", creationDate=" + creationDate +
                ", roleName='" + roleName + '\'' +
                ", modifyDate=" + modifyDate +
                ", modifyBy=" + modifyBy +
                ", sysUserNameList=" + sysUserNameList +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public Long getModifyBy() {
        return modifyBy;
    }

    public void setModifyBy(Long modifyBy) {
        this.modifyBy = modifyBy;
    }

    public List<SysUser> getSysUserNameList() {
        return sysUserNameList;
    }

    public void setSysUserNameList(List<SysUser> sysUserNameList) {
        this.sysUserNameList = sysUserNameList;
    }
}
